package game.pong.business
{
	import game.pong.events.SoundEvent;
	
	import mx.core.SoundAsset;
	
	public class SoundManager
	{
		[Embed('assets/sounds/bounce_simple.mp3')]
        public static var bounce_simple : Class;
        
		[Embed('assets/sounds/bounce_paddle.mp3')]
        public static var bounce_paddle : Class;
        
		[Embed('assets/sounds/lost_ball.mp3')]
        public static var lost_ball : Class;

        private var sound : SoundAsset;

        public function playSound(soundType : Class) : void
        {
		    sound = new soundType as SoundAsset;
        	sound.play();
        }

	}
}